package com.expand.learn.importor;

import com.expand.learn.importor.annotation.HTTPMethod;
import com.expand.learn.importor.annotation.HTTPRequest;
import com.expand.learn.importor.annotation.HTTPUtil;
import com.expand.learn.importor.http.HttpResult;
import org.springframework.stereotype.Component;

/**
 * @author zhanghaidong
 * @version v1.0
 * @description
 * @date 2020/3/11
 */
@Component
@HTTPUtil
public interface IRequestDemo {

    @HTTPRequest(url = "http://abc.com")
    HttpResult<String> test1();

    @HTTPRequest(url = "http://test2.com", httpMethod = HTTPMethod.POST)
    HttpResult<String> test2();
}
